//
// Created by richa on 2019/11/16.
//

#ifdef __cplusplus
extern "C" {
#endif

#ifndef GREENHOUSEMA_MODBUS_PLUGIN_H
#define GREENHOUSEMA_MODBUS_PLUGIN_H

#include "modbus.h"

modbus_mapping_t * replace_modbus_mapping_cache(modbus_mapping_t * sp,
                                                uint8_t * bit_address, int bit_n,
                                                uint8_t * input_bit_address, int input_bit_n,
                                                uint16_t * input_registers_address, int input_registers_n,
                                                uint16_t * registers_address, int registers_n
);

#endif //GREENHOUSEMA_MODBUS_PLUGIN_H

#ifdef __cplusplus
}
#endif